public class Yard extends Length {


    public Yard(double val, String unit) {
        super(val, unit);
    }

    public Length converter(String unit){
        if (INCH.equals(unit)) {
            return new Inch(this.value * 36, unit);
        } else if (FOOT.equals(unit)) {
            return  new Foot(this.value * 3, unit);
        }
        return  this;
    }
}
